<?php

require_once 'PHPCR/Value.php';
require_once 'PHPCR/ValueFormatException.php';
require_once 'PHPCR/RepositoryException.php';

/**
 * The ValueFactory object provides methods for the creation Value
 * objects that can then be used to set properties.
 */
interface phpCr_ValueFactory
{
    /**
     * Returns a Value object of with the specified value and an inferred
     * type.
     *
     * @param the specified value
     * @return a Value object
     * @throws ValueFormatException if the specified value format is invalid
     * @throws RepositoryException if a repository error occurs
     */
    public function createValue($value);

}
